//package com.dotflat.satistics.vo.general;
//
//import lombok.Data;
//
//import java.util.Map;
//
//import static com.matt.foundation.function.TimeComputeFunction.TIME_NAME;
//
///**
// * *******************************
// * Created by Tim.
// * form com.matt
// * on 2018/7/23
// * *******************************
// */
//@Data
//public class LeadCategoryVo {
//    private String timeName;
//    private long initiativeCount = 0;
//    private long passivityCount = 0;
//
//    public static LeadCategoryVo of(Map map){
//        LeadCategoryVo vo = new LeadCategoryVo();
//        vo.setTimeName(map.get(TIME_NAME).toString());
//        vo.setInitiativeCount(map.get("initiativeCount") == null ? 0 : Long.valueOf(map.get("initiativeCount").toString()));
//        vo.setPassivityCount(map.get("passivityCount") == null ? 0 : Long.valueOf(map.get("passivityCount").toString()));
//        return vo;
//    }
//}
